<%@page import="model.entity.Branch"%>
<%@page import="java.util.List"%>
<%@page import="model.CategoryImp"%>
<%@page import="model.entity.Category"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<div class="container_12">
  
	<h2>Branch </h2>   
 <p class="message1">

            
    <div class="clearfix">&nbsp;</div>
 
 

      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="pager">
	<tbody>
            <tr class="even">
            <th width="20%" scope="col">Branch name</th>
            <th width="10%" scope="col">Country</th>
            <th width="20%" scope="col">City</th>  
            <th width="20%" scope="col">State Provine</th>  
            <th width="20%" scope="col">Street</th>  
            <th width="10%" scope="col">Product</th>
        </tr>
            <%
        
        List<Branch> listbranch = (List<Branch>) request.getAttribute("listbranch");     
        for(Branch list : listbranch)  
                       {
%>
		<tr>
			<td scope="col"><%= list.getBranchname() %></td>
                        <td scope="col"><%= list.getCountry() %></td>
                        <td scope="col"><%= list.getCity() %></td>
                        <td scope="col"><%= list.getState_province() %></td>
                        <td scope="col"><%= list.getStreet() %></td>
                        <td scope="col">
                            <form action="<c:url value="<%= "/admin/product" %>" ></c:url>" method="GET">
                                <input type="text" name="branchid" hidden="true" value="<%= list.getBranchid() %>"/>
                                <a href="<c:url value="<%= "/admin/product" + list.getBranchid() %>"></c:url>"><input type="submit" value="View Product" class="submit"/></a>
                            </form>
                        </td>
                
            </td>
			
		</tr>
<%}%>	
		
	</tbody>
</table>
           
           
            

           
           <div class="clearfix">&nbsp;</div>
           
           
              
          
</div>